Skip to content

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Sep 25, 2025

@parthea parthea force-pushed the add-support-for-proto-only-library branch 5 times, most recently from a00c433 to 7088dbf Compare September 25, 2025 20:00
@parthea parthea changed the title [WIP] chore(librarian): add support for proto-only library chore(librarian): add support for proto-only library Sep 25, 2025
@parthea parthea marked this pull request as ready for review September 25, 2025 20:02
@parthea parthea requested review from a team as code owners September 25, 2025 20:02
@parthea parthea requested a review from JoeWang1127 September 25, 2025 20:02
@parthea parthea force-pushed the add-support-for-proto-only-library branch 4 times, most recently from 9cb3dac to e3be634 Compare September 25, 2025 20:10
Comment on lines +622 to +626
command_parts = [
f"protoc {api_path}/*.proto",
f"--python_out={tmp_dir}",
f"--pyi_out={tmp_dir}",
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we considered using grpc_tools.protoc instead of running the cli as a subprocess?

Copy link
Contributor Author

@parthea parthea Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my initial thought is that it's better to use protoc directly because we know which version of protoc we're getting. When we use grpc_tools.protoc, we're relying on grpc_tools to choose the version of protoc which adds unnecessary complexity.

@parthea parthea merged commit 3cab286 into main Sep 29, 2025
26 checks passed
@parthea parthea deleted the add-support-for-proto-only-library branch September 29, 2025 18:54
parthea added a commit that referenced this pull request Sep 29, 2025
parthea added a commit that referenced this pull request Sep 29, 2025
This PR depends on
#14551 and
#14587. Please
review those PRs first.

Towards googleapis/librarian#1076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants